﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CostDataStatistics.aspx.cs"
    Inherits="Catering.Catering_Page.Kufang.CostDataStatistics" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../Style/head.css" />
    <link rel="stylesheet" type="text/css" href="../../Style/center.css" />
    <link href="../../Style/zhezhao.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../Style/xxk.js" type="text/javascript"></script>
    <script src="../../Style/zhezhao.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="../../Scripts/My97DatePicker/WdatePicker.js"></script>
    <style>
        .tableThinBorder
        {
            border: 0px;
            width: 100%;
            background-color: #E7EDEF;
        }
        .tableThinBorder th
        {
            border: 1px solid #666666;
        }
        .tableThinBorder td
        {
            border: 1px solid #666666;
            height:22px;
            vertical-align:middle;
            overflow:hidden;
            min-width:85px;
        }
        
        
        input{ vertical-align:middle;}
        .tab_01{ empty-cells:show; width:100%; text-align:left; border-collapse:collapse; background-color:#E5F1FD;}
        .tab_01 tr td{ height:28px; border:1px solid #C2DEF6; min-width:80px; word-wrap:break-word; table-layout:fixed; padding-left:2px;}
        .tab_01 tr td.specail{border-top:none;}
        .tab_02{ empty-cells:show; width:100%; text-align:left; border-collapse:collapse; border:1px solid #C2DEF6; border-top:none; background-color:#E5F1FD; }
        .tab_02 tr td{height:34px;}
    </style>
    <script type="text/javascript">
        function CheckOption() {
            if ($("#TextBox1").val() == "") {
                alert("请输入收入合同人均费率！");
                return false;
            }
            else if ($("#TextBox2").val() == "") {
                alert("请输入伙食成本！");
                return false;
            }
            else {
                $("#LinkButton1").text("正在查询…");
                $("#LinkButton1").get(0).disabled = "disabled";
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">

    <asp:ScriptManager ID="ScriptManager1" ScriptMode="Release" runat="server"></asp:ScriptManager>
    <div id="div_se_1" class="nav_2" style="display: block">
        <div class="nav_2_1"><img src="../../Images/nav2_bg1.gif" /></div>
        <ul>
            <li style="background: none; width:60px; "><a href="CostDataStatistics.aspx"><span id="span_peic_1" class="lvse_border">成本统计</span></a></li>
            <li style="background: none; width:60px; "><a href="XiaohaoTypeCrossChar.aspx"><span id="span_peic_2" class="feise_border">消耗统计</span></a></li>
            <li style="background: none; width:130px; "><a href="DataStates.aspx"><span id="span_peic_3" class="feise_border">出入库状态统计</span></a></li>
        </ul>
        <div class="nav_2_3"><img src="../../Images/nav2_bg2.gif" /></div>
    </div>
    <div class="xxk_button1">
        <ul>
            <li id="li2_1" class="li_over"><a href="CostDataStatistics.aspx" >成本数据统计</a></li>
            <li id="li2_2"class="li_out"><a href="CostDataPieChar.aspx" >成本比例图</a></li>
            <li id="li2_3" class="li_out"><a href="CostDataPersonAvgChar.aspx" >月人均成本明细</a></li>
            <li id="li2_4" class="li_out"><a href="ylcbtj.aspx" >原料成本统计</a></li>
            <li id="li2_5" class="li_out"><a href="cbydzs.aspx" >成本月度走势</a></li>
            <li id="li2_6" class="li_out"><a href="rjcbzs.aspx" >人均成本走势</a></li>
        </ul>
    </div>
    <div class="Center_Content" id="div_search" style="display: block">
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="Center_Content" id="div2_1" style="display: block">
                <div class="div_0207 left_width500" style="height:34px; width:998px;">
                    <table align="left" width="998" border="0" cellspacing="0" cellpadding="0" style="height:34px" class="ckgl_table">
                        <thead>
                            <tr>
                                <td align="right" style="width:60px">作业区：</td>
                                <td style="width:90px"><asp:DropDownList ID="ddl_OArea" CssClass="select_input_bg" 
                                        Width="90" runat="server"></asp:DropDownList></td>
                                <td style="width: 30px" align="right">按：</td>
                                <td style="width:40px">
                                    <asp:DropDownList ID="ddl_Time" AutoPostBack="true" Width="40" CssClass="select_input_bg" runat="server" OnSelectedIndexChanged="ddl_Time_SelectedIndexChanged">
                                        <asp:ListItem Value="Year">年</asp:ListItem>
                                        <asp:ListItem Value="Month">月</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td width="60" align="center" valign="middle">
                                    <asp:TextBox ID="txt_StratDate" Text="" Width="50px" CssClass="input_bg" runat="server">
                                    </asp:TextBox>
                                </td>
                                <td align="center" style="width:15px">至</td>
                                <td width="60" align="center" valign="middle">
                                    <asp:TextBox ID="txt_EndDate" Text="" Width="50px" CssClass="input_bg" runat="server"></asp:TextBox>                         
                                </td>
                                <td align="right" style="width:65px">就餐人数：</td>
                                <td width="100" valign="middle">
                                    <asp:TextBox ID="txtEatNumbers" CssClass="input_bg" style="vertical-align:middle;" Width="90px" runat="server"></asp:TextBox>
                                </td>
                                <td align="right" style="width:65px">配餐人数：</td>
                                <td width="100" valign="middle">
                                    <asp:TextBox ID="txtSetNumbers" CssClass="input_bg" style="vertical-align:middle;" Width="90px" runat="server"></asp:TextBox>
                                </td>
                                <td align="right" style="width:65px">特殊人数：</td>
                                <td valign="middle">
                                    <asp:TextBox ID="txtSpecailRate" CssClass="input_bg" style="vertical-align:middle;" Width="90px" runat="server"></asp:TextBox>
                                </td>
                                <td>&nbsp;</td>
                                <td width="100">
                                <asp:LinkButton ID="btn_EatAndCalculate" runat="server" 
                                        onclick="btn_EatAndCalculate_Click" CausesValidation="False">获取就餐人数</asp:LinkButton>
                                </td>
                            </tr>
                        </thead>
                    </table>
                </div>
                <dl>
                    <table cellpadding="0" cellspacing="0" class="tab_01">
                        <tr>
                            <td class="specail" align="right" width="110">收入合同人均费率：</td>
                            <td class="specail" width="80">
                                <asp:TextBox ID="TextBox1" CssClass="input_bg" Width="50" Height="18" runat="server"></asp:TextBox>元
                                <asp:RequiredFieldValidator ID="RequiredTextBox1" runat="server" 
                                    ErrorMessage="*" ForeColor="Red" ControlToValidate="TextBox1" 
                                    ValidationGroup="Tongji" ></asp:RequiredFieldValidator>
                            </td>
                            <td class="specail" align="right" width="70">特殊费率：</td>
                            <td class="specail" width="70">
                                <asp:TextBox ID="TextBox4" CssClass="input_bg" Width="50" Height="18" runat="server"></asp:TextBox>元                                
                            </td>
                            <td class="specail" align="center" width="65" rowspan="2">考核指标</td>
                            <td class="specail" align="right" width="65">伙食成本：</td>
                            <td class="specail" width="90"><asp:TextBox ID="TextBox2" CssClass="input_bg" Width="40px" Height="18" runat="server"></asp:TextBox>元/人天</td>
                            <td class="specail" align="right" width="85">期初库存总计：</td>
                            <td class="specail" width="95"><asp:Label ID="lblFirstInventory" runat="server"></asp:Label></td>
                            <td class="specail" align="center" width="65" rowspan="2">食品原材料成本合计</td>
                            <td class="specail" align="right" width="75">采购数口径：</td>
                            <td class="specail"><asp:Label ID="lblAmountMoney" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td align="right">服务比：</td>
                            <td colspan="3"><asp:Label ID="lblServerRatio1" runat="server"></asp:Label></td>
                            <td align="right">服务比：</td>
                            <td><asp:TextBox ID="TextBox3" CssClass="input_bg" Width="60px" Height="18" runat="server"></asp:TextBox></td>
                            <td align="right">期末库存总计：</td>
                            <td><asp:Label ID="lblLastInventory" runat="server"></asp:Label></td>
                            <td align="right">消耗数口径：</td>
                            <td><asp:Label ID="lblUsedMoney" runat="server"></asp:Label></td>
                        </tr>
                    </table>
                    <table cellpadding="0" cellspacing="0" class="tab_01">
                        <tr>
                            <td class="specail" align="center" width="110" rowspan="2">人均伙食成本</td>
                            <td class="specail" align="right" width="75">采购数口径：</td>
                            <td class="specail" width="90"><asp:Label ID="Label9" runat="server"></asp:Label></td>
                            <td class="specail" align="center" width="90" rowspan="2">是否超出考核<br />指标</td>
                            <td class="specail" align="right" width="75">采购数口径：</td>
                            <td class="specail" width="90"><asp:Label ID="Label11" ForeColor="Red" runat="server"></asp:Label></td>
                            <td class="specail" align="center" rowspan="2" width="90">食品原材料成<br />本率</td>
                            <td class="specail" align="right" >采购数口径：</td>
                            <td class="specail" colspan="3" width="90"><asp:Label ID="Label13" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td align="right">消耗数口径：</td>
                            <td><asp:Label ID="Label10" runat="server"></asp:Label></td>
                            <td align="right">消耗数口径：</td>
                            <td><asp:Label ID="Label12" ForeColor="Red" runat="server"></asp:Label></td>
                            <td width="90" align="right">消耗数口径：</td>
                            <td width="93"><asp:Label ID="Label14" runat="server"></asp:Label></td>
                            <td width="75" align="right">餐费总收入：</td>
                            <td><asp:Label ID="Label1" runat="server"></asp:Label></td>
                        </tr>
                    </table>
                    <table cellpadding="0" cellspacing="0" width="100%" class="tab_02">
                        <tr>
                            <td width="10" class="specail" ></td>
                            <td align="left" class="specail" >
                                <asp:CheckBoxList ID="CheckBoxList1" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" RepeatColumns="8" onselectedindexchanged="CheckBoxList1_SelectedIndexChanged" ValidationGroup="Other" />
                            </td>
                            <td width="100">
                                <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="CheckOption()" OnClick="LinkButton1_Click" 
                                    CssClass="input_btn_a" ValidationGroup="Tongji">开始统计</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </dl>
                <dl>
                    <rsweb:ReportViewer ID="ReportViewer1" Width="100%" runat="server" Font-Names="Verdana"
                        Font-Size="8pt" InteractiveDeviceInfos="(集合)" WaitMessageFont-Names="Verdana" BackColor="White"
                        Visible="false" WaitMessageFont-Size="14pt">
                        <LocalReport ReportPath="Catering_Page\Kufang\Report\Cost_Data_Statistics_Char.rdlc">
                        </LocalReport>
                    </rsweb:ReportViewer>
                </dl>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
